package com.spring.security.study.security_test.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.spring.security.study.security_test.api.SysUser;
import org.apache.ibatis.annotations.Param;


/**
 * <p>
 * 系统用户表 服务类
 * </p>
 *
 * @author lby
 * @since 2021-01-11
 */
public interface SysUserService extends IService<SysUser> {

    /**
     * 用户角色关联
     */
    Boolean saveUserRole(@Param("userId") Integer userId, @Param("roleId") Integer roleId);

    /**
     * 导入数据校验
     */
    Integer countUsers(SysUser sysUser);
}
